package com.aaa.web.dao.schedulescanbatterydao;

import com.aaa.entity.BatteryCharge;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * com.aaa.web.dao.schedulescanbatterydao interface
 *
 * @author Kevin Jia
 * @interface:ScheduleScanBatteryDao
 * @Date:2018/12/27 16:27
 */
@Component
@Mapper
public interface ScheduleScanBatteryDao {
    /**
     * @Description: 查询充电表充满电瓶
     * @Param: date
     * @return: List<BatteryCharge>
     * @Author: Kevin Jia
     * @Date: 2018/12/27
     * @Time: 16:35
     */
    List<BatteryCharge> checkBatterysStatus(Date date);

    /**
     * @Description: 查询充电表充满电瓶数量
     * @Param: date
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/27
     * @Time: 16:42
     */
    Integer getBatteryCounts(Date date);

    /**
     * @Description: 修改充电表状态
     * @Param: batteryCharges
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/27
     * @Time: 20:16
     */
    void updataBatteryStatus(List<BatteryCharge> batteryCharges);

    /**
     * @Description: 修改站点表可用电瓶数量
     * @Param: batteryCharges
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/27
     * @Time: 20:16
     */
    void updataBatteryPlace(BatteryCharge batteryCharge);

    /**
     * @Description: 修改可用电瓶数量正常
     * @Param: none
     * @return: boolean
     * @Author: Kevin Jia
     * @Date: 2019/1/2
     * @Time: 9:39
     */
    void isNormal();
}
